package com.zretc.service;

import com.github.pagehelper.PageInfo;
import com.zretc.entity.Notice;
import com.zretc.entity.ResponseResult;

import java.util.Map;

/**
 * @author 周文涛
 * 公告业务层
 */
public interface NoticeService {

    PageInfo<Notice> getAll(Map<String,String> condition);

    Notice getOne(Integer noticeId);

    ResponseResult insert(Notice notice);

    ResponseResult update(Notice notice);

    ResponseResult delete(Integer noticeId);

    Notice getNew();
}
